---
sidebar_label: Cloudflare Workers AI
---

# ChatCloudflareWorkersAI

Workers AI allows you to run machine learning models, on the Cloudflare network, from your own code.

## Usage

You'll first need to install the LangChain Cloudflare integration package:

import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

<IntegrationInstallTooltip></IntegrationInstallTooltip>

```bash npm2yarn
npm install @langchain/cloudflare
```

import CodeBlock from "@theme/CodeBlock";
import Example from "@examples/models/chat/integration_cloudflare_workersai.ts";

import UnifiedModelParamsTooltip from "@mdx_components/unified_model_params_tooltip.mdx";

<UnifiedModelParamsTooltip></UnifiedModelParamsTooltip>

<CodeBlock language="typescript">{Example}</CodeBlock>
